home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 1.5 KB | 44 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: FWATogIt.cpp
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
- // We separate the archiving functions into their own translation units in order to
- // enable dead-stripping.
-
- #include "FWOS.hpp"
-
- #ifndef FWMNUITM_H
- #include "FWMnuItm.h"
- #endif
-
- //========================================================================================
- // File scope definitions
- //========================================================================================
-
- #ifdef FW_BUILD_MAC
- #pragma segment fwmenu
- #endif
-
- //========================================================================================
- // class FW_CToggleItem
- //========================================================================================
-
- const FW_ClassTypeConstant FW_LToggleItem = FW_TYPE_CONSTANT('t','g','i','t');
- FW_REGISTER_ARCHIVABLE_CLASS(FW_LToggleItem, FW_CToggleItem, FW_CToggleItem::Read, 0, 0, FW_CMenuItem::Write)
-
- //----------------------------------------------------------------------------------------
- // FW_CToggleItem::Read
- //----------------------------------------------------------------------------------------
-
- void* FW_CToggleItem::Read(FW_CReadableStream& stream, FW_ClassTypeConstant type)
- {
- FW_UNUSED(type);
- FW_SOMEnvironment ev;
- return FW_NEW(FW_CToggleItem, (ev, stream));
- }
-
-